package com.kukudexin.producerdata;

/**
 * @author: 酷酷的鑫
 * @Date: 2022/1/24 9:56
 * @description:
 */
public class ConsumerThread extends Thread{

    private ValueOP obj;

    public ConsumerThread(ValueOP obj){
        this.obj = obj;
    }
    @Override
    public void run() {
        while (true){ obj.getValue(); }
    }
}
